package cn.com.anypay.manager.miaoma.manual.student;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_miaoma_student")
public class Student {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id = 0L;
    private String studentNo = "";
    private String name = "";
    private Integer gender = 0;
    private Integer age = 0;
    private LocalDate birthDate = LocalDate.now();
    private String className = "";
    private LocalDate enrollDate = LocalDate.now();
    private Integer status = 0;
    private String remark = null;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}